package cate.game.role.farm.adventure.msg;

import cate.common.annotation.OperationSetter;
import cate.common.table.d.GDOperation;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBAdventure;
@ClientMsg(title = "【冒险】之领取挂机奖励 の 请求")
@OperationSetter(GDOperation.ADVENTURE_HANG)
public class AdventureHangReq implements MsgInput {

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.getRole().getFarm().adventure.getOrWatchHangReward(false);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBAdventure.ADVENTURE_HANG_REQ;
    }
}
